<div id="user" data-ng-controller="UserController">
	<div class="content" >
		<div data-ng-class="userControl.textClass">
			<span data-ng-bind-html="userControl.contentText"></span>
		</div>
		<div class="connection {{ userControl.connectionClass }}">
			<form data-ng-submit="userControl.connect()" data-ng-class="userControl.connectionClass" >
				<label>Email: </label><input type="text" data-ng-model="userControl.email" data-autofillable=""/>
				<br/>
				<label>Password: </label><input type="password" data-ng-model="userControl.password" data-autofillable=""/>
				<hr/>
				<div class="error">
					<span data-ng-bind-html="userControl.error"></span>
				</div>
				<div class="control">
					<input type="submit" value="Login" />
					<div class="register">or <a class="big" href="<?= $this->route('inscription'); ?>">Register</a></div>
				</div>
			</form>
			<form data-ng-submit="userControl.disconnect()" data-ng-class="userControl.disconnectClass">
				<div class="control" >
					<input type="submit" value="Logout"/><br/><br/>
					<input type="button" onClick='document.location.href="<?= $this->route('updateuser'); ?>"' value="Update account"/>
				</div>
			</form>
		</div>
	</div>
</div>